{**
 * My Application layout template.
 *
 * @param string   $basePath web base path
 * @param string   $robots   tell robots how to index the content of a page (optional)
 * @param array    $flashes  flash messages
 *}

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="description" content="Členové Speleoklubu FBMI při Duha Studánka Náchod a členů licenčního kurzu Instruktora speleologie a speleoalpinismu">
	<meta name="robots" content="{$robots}" n:ifset="$robots">

	<title>{block title|striptags|upper}Speleologický klub FBMI{/block}</title>

	<link rel="shortcut icon" href="{$basePath}/images/favicon.ico">
	<link rel="stylesheet" media="screen, projection, tv" href="{$basePath}/css/bootstrap.css">
	<link rel="stylesheet" media="screen, projection, tv" href="{$basePath}/css/bootstrap-responsive.css">

	{** Jquery, jquery-ui + css*}
	<link rel="stylesheet" media="screen, projection, tv" href="{$basePath}/css/overcast/jquery-ui.css">
	<script src="{$basePath}/js/jquery.js"></script>
	<script src="{$basePath}/js/jquery-ui.js"></script>

	{** Grido*}
	<link rel="stylesheet" media="screen, projection, tv" href="{$basePath}/css/grido.css">
	<script src="{$basePath}/js/jquery.grido.js"></script>

	{**
	<script src="{$basePath}/js/bootstrap-datepicker.js"></script>
	<script src="{$basePath}/js/bootstrap-alert.js"></script>
	<script src="{$basePath}/js/bootstrap-dropdown.js"></script>
	<script src="{$basePath}/js/jquery.hashchange.min.js"></script>
	<script src="{$basePath}/js/jquery.maskedinput.min.js"></script>
	**}

	{** JS*}
	<script src="{$basePath}/js/bootstrap.js"></script>
	<script src="{$basePath}/js/main.js"></script>
	<script src="{$basePath}/js/netteForms.js"></script>
	<script src="{$basePath}/js/validation.js"></script>

	<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places&sensor=false"></script>
	<script type="text/javascript" src="{$basePath}/js/nette.gpsPicker.js"></script>

	{** CKEditor*}
	<script src="{$basePath}/addons/ckeditor/config.js"></script>
	<link rel="stylesheet" href="{$basePath}/addons/ckeditor/contents.css">
	<script src="{$basePath}/addons/ckeditor/styles.js"></script>
	<script src="{$basePath}/addons/ckeditor/ckeditor.js"></script>

	{block head}{/block}
</head>

<body>
<div n:if="$user->isLoggedIn()" class="navbar navbar-inverse navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			</button>
			<a class="brand" n:href="Homepage:">SPELEO</a>
			<div class="nav-collapse collapse">
				<ul class="nav">
					<li class="dropdown" n:class="$presenter->isLinkCurrent('Homepage:*') ? 'active dropdown' : 'dropdown'">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Události <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a n:href="Homepage:"><i class="icon-list-alt"></i> Procházet události</a></li>
							<li class="divider"></li>
							<li><a n:href="Homepage:add"><i class="icon-plus-sign"></i> Přidat událost</a></li>
						</ul>
					</li>
					<li class="dropdown" n:class="$presenter->isLinkCurrent('Places:*') ? 'active dropdown' : 'dropdown'">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Místa <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a n:href="Places:"><i class="icon-list-alt"></i> Procházet místa</a></li>
							<li class="divider"></li>
							<li><a n:href="Places:add"><i class="icon-plus-sign"></i> Přidat místo</a></li>
						</ul>
					</li>
					<li class="dropdown" n:class="$presenter->isLinkCurrent('Reservations:*') ? 'active dropdown' : 'dropdown'">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Rezervace <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a n:href="Reservations:"><i class="icon-list-alt"></i> Procházet rezervace</a></li>
							<li class="divider"></li>
							<li><a n:href="Reservations:add"><i class="icon-plus-sign"></i> Přidat rezervaci</a></li>
						</ul>
					</li>
					<li class="dropdown" n:class="$presenter->isLinkCurrent('Users:*') ? 'active dropdown' : 'dropdown'">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Uživatelé <b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><a n:href="Users:"><i class="icon-list-alt"></i> Procházet uživatele</a></li>
							<li class="divider"></li>
							<li class="nav-header">Uživatelé</li>
						</ul>
					</li>
				</ul>

				<p class="navbar-text pull-right">
					<a class="navbar-link">{$user->getIdentity()->username}</a> | <a n:href="logout!" class="navbar-link">Odhlásit</a>
				</p>
			</div><!--/.nav-collapse -->
		</div>
	</div>
</div>

<div class="container">
	<script> document.body.className += 'js' </script>

	{include #header}

	<!-- Breadcrumb -->
	<ul n:if="$user->isLoggedIn()" class="breadcrumb">
		<li><a n:href="Homepage:">SPELEO</a> <span class="divider">/</span></li>
		<li class="active">{$presenter->getName()}<span class="divider">/</span></li>
		<li class="active">{$presenter->getView()}</li>
	</ul>

	<!-- FlashMessage -->
	<div n:foreach="$flashes as $flash" class="alert fade in alert-{$flash->type}">
		<a class="close" data-dismiss="alert" href="#">×</a>
		{$flash->message}
	</div>

	{include #content}

	<footer>
		<hr />
		&copy; 2013
		<p class=" pull-right">PHP {=PHP_VERSION} | {ifset $_SERVER['SERVER_SOFTWARE']}Server {$_SERVER['SERVER_SOFTWARE']}{/ifset} |
		SPELEO 1.0</p>
	</footer>
</div> <!-- /container -->
</body>
</html>
